package com.logos.factory;

import com.logos.dao.BookDao;
import com.logos.dao.impl.BookDaoImpl;
import org.springframework.beans.factory.FactoryBean;

public class BookDaoFactoryBean implements FactoryBean<BookDao> {

    //代替原始实例工厂中创建对象的方法
    @Override
    public BookDao getObject() throws Exception {
        return null;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        //true:单例
        return true;
    }
}
